<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="/wondershare/js/jquery.js"></script> 
<script src="/wondershare/js/utils.js"></script> 
<script src="/wondershare/js/topic.js"></script> 
<link href="/wondershare/styles/main.css" rel="stylesheet" type="text/css" />
<link href="/wondershare/styles/general.css" rel="stylesheet" type="text/css" />
<title>分类编辑</title>

</head>

<body >
<h1>
<span class="action-span">
<a href="/wondershare/category.php?action=index&type=<{$type}>&w_type=<{$w_type}>">分类管理</a>
</span>
<span class="action-span1">

<{if $type == 2}>
<a href="/wondershare/products.php?action=index&web_type=<{$w_type}>"><{$web_info}>网站产品信息</a>  > 
<a href="/wondershare/category.php?action=index&type=<{$type}>&w_type=<{$w_type}>">产品分类列表</a>
<{else if $type == 1}>
<a href="/wondershare/article.php?action=index&w_type=<{$w_type}>"><{$web_info}>网站文章信息</a>  > 
<a href="/wondershare/category.php?action=index&type=<{$type}>&w_type=<{$w_type}>"><{$web_info}>网站文章分类列表</a>
<{/if}>
</span>
<span id="search_id" class="action-span1"> > <{$form_value}>分类 </span>
<div style="clear:both"></div>
</h1>
<div class="main-div">
  <form action="/wondershare/category.php?action=index&w_type=<{$w_type}>" method="post" name="theForm" enctype="multipart/form-data" onsubmit="return validate()">
  <table width="100%" id="general-table">
  
      <tr>
        <td class="label"><font color="red" >*</font>分类名称:</td>
        <td>
          <input type='text' name='cat_name'  id="cat_name"   value='<{$cat_info[0].cat_title|escape}>' size='50' /> 
        </td>
      </tr>
	  
      <tr>
        <td class="label">上级分类:</td>
        <td>
          <select name="parent_id" id="parent_id">
		    <option value="0" >一级分类</option> 
 			<{$cat_select}>
 		</select>
        </td>
      </tr>
     <tr>
        <td class="label">图片路径:</td>
        <td>
          <input type='text' name='cat_image'  id="cat_image"  style="width:350px;" value='<{$cat_info[0].cat_image}>'  />
        </td>
		<{if $type == 2}> <td>请填写二级分类图片路径（如Video&DVD Tools）位于二级分类目录页，三级分类不需要图片。</td> <{/if}>
      </tr>
	  
	  <{if $type == 1}> 
	   <tr>
        <td class="label">缩略图路径:</td>
        <td>
          <input type='text' name='cat_thumb'  id="cat_thumb"  style="width:350px;" value='<{$cat_info[0].cat_thumb}>'  />
        </td>
		
      </tr>
	  <{else}>
	  <input type='hidden' name='cat_thumb'  id="cat_thumb"   value=''  />
	  <{/if}>
	  
      <tr>
        <td class="label">是否推荐到首页:</td>
        <td>
          <select name="recommended"  id="recommended">
		  
          <option value="0"  <{if $cat_info[0].is_recommended == 0}> selected="selected" <{/if}> >否</option>
		 
	
		  <option value="1" <{if $cat_info[0].is_recommended == 1}> selected="selected"  <{/if}> >是</option>

			</select>
        </td>
      </tr>
	 
	
	<{if $type == 2}> 
        <tr>
        <td class="label">分类短简介:</td>
        <td>
          <textarea name='cat_intro' id="cat_intro" rows="4" cols="48"><{$cat_info[0].cat_intro}></textarea>
        </td>
		<{if $type == 2}><td>请填写三级分类的描述，如Video Converter。位于二级分类目录页头部文字描述。</td><{/if}>
      </tr>
	  <{else}>
	  <input type='hidden' name='cat_intro'  id="cat_intro"   value=''  />
	  
	 <{/if}>
      <tr>
        <td class="label"><{if $type == 2}> 分类长简介: <{else}> 分类简介: <{/if}></td>
        <td>
          <textarea name='cat_desc' id="cat_desc" rows="6" cols="48"><{$cat_info[0].cat_desc}></textarea>
        </td>
		<{if $type == 2}><td>二级分类的长描述，位于二级分类聚合页头部。
三级分类的长描述，位于二级分类聚合页各分类处。</td><{/if}>
      </tr>
	  
	  <{if $cat_info[0].cat_series == 3}>
		  <{if $type==2}>
			<tr>
			<td class="label">Overview Google Code：</td>
			<td>
			  <textarea cols="48" rows="6" id="google_code_oview" name="google_code_oview"><{$cat_info[0].google_code_oview|escape}></textarea></td>
		  </tr>
			<tr>
			<td class="label">guide Google Code：</td>
			<td>
			  <textarea cols="48" rows="6" id="google_code_guide" name="google_code_guide"><{$cat_info[0].google_code_guide|escape}></textarea></td>
		  </tr>
			<tr>
			<td class="label">buy Google Code：</td>
			<td>
			  <textarea cols="48" rows="6" id="google_code_buy" name="google_code_buy"><{$cat_info[0].google_code_buy|escape}></textarea></td>
		  </tr>
          
          <tr>
			<td class="label">install Google Code：</td>
			<td>
			  <textarea cols="48" rows="6" id="google_code_install" name="google_code_install"><{$cat_info[0].google_code_install|escape}></textarea></td>
		  </tr>
          <tr>
			<td class="label">uninstall Google Code：</td>
			<td>
			  <textarea cols="48" rows="6" id="google_code_uninstall" name="google_code_uninstall"><{$cat_info[0].google_code_uninstall|escape}></textarea></td>
		  </tr>
          <tr>
			<td class="label">register Google Code：</td>
			<td>
			  <textarea cols="48" rows="6" id="google_code_register" name="google_code_register"><{$cat_info[0].google_code_register|escape}></textarea></td>
		  </tr>
	  	 <{else}>
			<tr>
			<td class="label">article Google Code：</td>
			<td>
			  <textarea cols="48" rows="6" id="google_code_article" name="google_code_article"><{$cat_info[0].google_code_article|escape}></textarea></td>
		  </tr>
		  <{/if}>		 
	  <{/if}>
	  
      </table>
      <div class="button-div"  style="margin-left:-300px;">
        <input type="button" value="<{$form_value}>" onclick="submit_cat('<{$form_act}>',<{$type}>,<{if $cat_info[0].cat_id}><{$cat_info[0].cat_id}><{else}>0<{/if}>,<{if $cat_info[0].cat_series}><{$cat_info[0].cat_series}><{else}>0<{/if}>,<{$w_type}>);" />
        <input type="reset" value="重置"  />
      </div>
	 <{if $type == 1}>
	  <input type="hidden" id="type"  value="1"/>
	 <{else}>
	  <input type="hidden" id="type"  value="2"/>
	 <{/if}>
	<input type="hidden" id="web"  value="1"/>
    <input type="hidden" id="cat_series"  name="cat_series" value="<{$cat_info[0].cat_series}>"/>
	<input type="hidden" name='sort_order'  id="sort_order" value="<{if $cat_info[0].sort_order}><{$cat_info[0].sort_order}><{else}>50<{/if}>"/>   
    <input type="hidden" name="act" id="act" value="<{$form_act}>" />
    <input type="hidden" name="cat_id"  id="cat_id" value="<{$cat_info[0].cat_id}>" />
  </form>
</div>

</body>
</html>